package com.zt.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zt.user.UserInfo;
import lombok.Data;

/**
 * 
 * @TableName account_opening
 */
@TableName(value ="account_opening")
@Data
public class AccountOpening implements Serializable {
    /**
     * 开户id
     */
    @TableId(type = IdType.AUTO)
    private Integer openingId;

    /**
     * 用户id 外键
     */
    private Integer userId;

    /**
     * 银行卡密码
     */
    private Integer bankNumber;

    /**
     * 绑卡外键
     */
    private Integer bindingId;

    /**
     * 开户时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date openingDate;
    private String openTwo;
    @TableField(exist = false)
    private UserInfo userInfo;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}